package edu.sctu.practice.class01.nieyu.assign03.assign03_3;

/**
 * Created by Administrator on 2015/10/22.
 */
public class Circle {

    private double radius;

    public Circle()
    {

        this(1.0);
    }

    public Circle(double radius)
    {

        this.radius = radius;
    }

    public double getRadius()
    {

        return radius;
    }

    public void setRadius(double radius)
    {

        this.radius = radius;
    }

    public double findArea()
    {

        return radius*radius*Math.PI;
    }

    public double findPerimeter()
    {

        return 2*radius*Math.PI;
    }

}
